package com.sxhalo.fsms.service;

import com.sxhalo.fsms.domain.*;
import com.sxhalo.fsms.mapper.FactDeviceMapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IDeviceEmRunningDataService extends IBaseService<DeviceEmRunningData> {

    Integer foreachInsert(List<RedisData> list);

    List<HashMap> findAttrHis(String  attr, String   where);

    //曲线图标
    List<Map<String,Object>> getEnergyPhaseHis(String where);


    //能耗报表
    List<Map<String,Object>>  getEnergyReport(List<FactArea> areaList,String where, String where1, String type);

    //能耗报表
    List<Map<String,Object>>  getEnergyReport1(List<FactDevice> deviceList, String where, String where1, String type);

    Map<String,Object>  getLastData(List<FactArea> areaList, String where);
    Map<String,Object>  getLastData1(List<FactDevice> deviceList, String where);
    List<Map<String,Object>>  getUnitEnergyReport(String where,String where1);

}
